package topevery.syn.data.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import topevery.syn.data.model.codec.ModelTypeEnumCodec;

import java.time.LocalDateTime;

@Data
public class EvaluateData implements IGlbModel {

    @JSONField(name = "a")
    public Long gid;

    @JSONField(name = "b", serializeUsing = ModelTypeEnumCodec.class, deserializeUsing = ModelTypeEnumCodec.class)
    public ModelTypeEnum modelType = ModelTypeEnum.EvaluateData;

    @JSONField(name = "c")
    public String clientKey;

    @JSONField(name = "d")
    public LocalDateTime dbCreateDate;

    @JSONField(name = "e")
    public LocalDateTime clientDate;

    //10星评价个数
    @JSONField(name = "f")
    public Integer s10Num;

    //9星评价个数
    @JSONField(name = "g")
    public Integer s9Num;

    //8星评价个数
    @JSONField(name = "h")
    public Integer s8Num;

    //7星评价个数
    @JSONField(name = "i")
    public Integer s7Num;

    //6星评价个数
    @JSONField(name = "j")
    public Integer s6Num;

    //5星评价个数
    @JSONField(name = "k")
    public Integer s5Num;

    //4星评价个数
    @JSONField(name = "l")
    public Integer s4Num;

    //3星评价个数
    @JSONField(name = "m")
    public Integer s3Num;

    //2星评价个数
    @JSONField(name = "n")
    public Integer s2Num;

    //1星评价个数
    @JSONField(name = "o")
    public Integer s1Num;

    //满意评价个数
    @JSONField(name = "p")
    public Integer satisfaction;

    //一般评价个数
    @JSONField(name = "q")
    public Integer common;

    //不满意评价个数
    @JSONField(name = "r")
    public Integer dissatisfaction;

    @Override
    public String getGlbModelKey() {
        return clientKey;
    }

    @Override
    public Long getGid() {
        return gid;
    }

    @Override
    public void setGid(Long gid) {
        this.gid = gid;
    }

    @Override
    public ModelTypeEnum getModelType() {
        return modelType;
    }

    @Override
    public void setModelType(ModelTypeEnum modelType) {
        this.modelType = modelType;
    }
}